import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { getRequest, postRequest } from "network/request";

// 引入全局样式
import 'assets/css/global.css';

// 引入字体图标(阿里云图标库)
import 'assets/fonts/iconfont.css';


// 引入element-ui 相关组件
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";

Vue.use(ElementUI);

Vue.config.productionTip = false;

// 将在request.js中封装的请求挂载到vue原型
Vue.prototype.postRequest = postRequest;
Vue.prototype.getRequest = getRequest;

axios.defaults.baseURL = '/api';

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
